<? session_start(); ?>
<html>

<head>
	<meta http-equiv="content-type" content="text/html; charset=utf-8">
	<title>Register</title>
	<link rel="shortcut icon" href="{Favicon}">
	<link rel="stylesheet" type="text/css" href="CSS/style.css">
</head>

<body>

	<div id="header">
	<h1><strong>This Android Website of Testing Stuff</strong></h1>
		
		<?
	if($_SESSION['loggedIn'] == true) { ?>	

		<div class="usermenu">
			<br>
			<br>
			<a href="/usersettings.php">User Settings</a>
			<br>
			<a href="/logout.php">Logout</a>
		</div>
		

		<div id="user">
	<? echo''.$_SESSION['username'].''; ?>
		</div>
	<? } ?>
	</div>

		<div id="bottomcurve">
		</div>

		<div class="menubar">

			<div class="empty">
			<a href="index.php">
			<img src="empty.gif">
			</a>
			</div>

			<div class="menuhome">
			Home
			</div>	

			<? if ($_SESSION['loggedIn'] == true){ ?>

			<div class="empty2">
				<a href="speedpage.php">
				<img src="empty.gif">
				</a>
			</div>

			<div class="menulogin">
				Speed
			</div>
			
<? }else{ ?> 
			<div class="empty2">
				<a href="login.php">
				<img src="empty.gif">
				</a>
			</div>

			<div class="menulogin">
				Login
			</div>
		<? }?>	

			<div class="empty3">
			<a href="register.php">
			<img src="empty.gif">
			</a>
			</div>

			<div class="menuregister">
			Register
			</div>

			<div class="empty4">
			<a href="credits.php">
			<img src="empty.gif">
			</a>
			</div>

			<div class="menucredits">
			Credits
			</div>
		</div>

	<div id="register">
	<form action="checkregister.php" method="post">
    <table>
    	      <tr>
                	<td>Username: <input type="text" name="username" style="width:100px; margin-left:10px;"/></td></tr>
		<tr><td>Password: <input type="password" name="password"style="width:100px; margin-left:10px;"/></td></tr>
		<tr><td>Re-password: <input type="password" name="repassword"style="width:100px; margin-left:10px;"/ ></td></tr>
	</table>
				<input type="submit" name="Submit" value="Register">
	</form>
	</div>
</body>


</html>

